<%-- 
    Document   : comentarioPagina
    Created on : 22/01/2012, 05:21:03 PM
    Author     : camposvc
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>JSP Page</title>
        </head>
        <body>
        <h:form>
            <table>
            <tr align="left">
                <td>
                    <h:outputText binding="#{comentarioPagina.txtMensaje}"/>
                </td>
            </tr>

            <tr>
                <td>
                    <h:dataTable width="80%" border="1" id="dtPaginas" value="#{comentarioPagina.listComentarios}" var="row">
                        <h:column>
                            <h:outputText value="#{row.descripcion}"/>
                        </h:column>
                    </h:dataTable>
                </td>
             </tr>

            <tr align="left">
                <td>
                    <h:inputText id="txtConsulta" size="10" value="#{comentarioPagina.txt_descripcion}" />
                </td>
            </tr>
            <tr align="center">
                <td>
                   <h:commandButton id="btnRegistrar" action="#{comentarioPagina.Registrar}" value="Registrar" />
                </td>
            </tr>


            <h1>
            <h:outputText  style="color:red" value="#{comentarioPagina.txt_error}"/>
            </h1>
           </table>
            <h:outputText binding="#{comentarioPagina.otxMensaje}"/>
        </h:form>
        </body>
    </html>
</f:view>

